<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="配置客户端与OceanProtect备份一体机的全量映射关系">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="DWS_00109.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="DWS_00117">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>配置客户端与OceanProtect备份一体机的全量映射关系</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="DWS_00117"></a><a name="DWS_00117"></a>

<h1 class="topictitle1">配置客户端与OceanProtect备份一体机的全量映射关系</h1>
<div><p>若开启了源端重删，需要人工配置映射关系、指定数据备份到的<span>OceanProtect</span>。请先参考<a href="#DWS_00117__section1825785118571">映射关系内容说明</a>、<a href="#DWS_00117__section125885195719">映射规则</a>和<a href="#DWS_00117__section132586514577">映射关系样例</a>，了解如何创建映射关系后，再根据<a href="#DWS_00117__section5280729122712">操作步骤</a>进行创建。</p>
<div class="section" id="DWS_00117__section1825785118571"><a name="DWS_00117__section1825785118571"></a><a name="section1825785118571"></a><h4 class="sectiontitle">映射关系内容说明</h4><p>针对不同的安装场景，配置文件agent_cfg.xml填写的映射关系内容也不同，相关说明请参见<a href="#DWS_00117__table14257125113571">表1</a>。所有部署了客户端的设备均需在配置文件中创建映射关系，且每台设备配置文件中创建的映射关系内容必须相同。</p>

<div class="tablenoborder"><a name="DWS_00117__table14257125113571"></a><a name="table14257125113571"></a><table cellpadding="4" cellspacing="0" summary="" id="DWS_00117__table14257125113571" frame="border" border="1" rules="all"><caption><b>表1 </b>映射关系内容说明</caption><colgroup><col style="width:36.76%"><col style="width:29.9%"><col style="width:33.33%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" id="mcps1.3.2.3.2.4.1.1"><p>客户端部署场景</p>
</th>
<th align="left" class="cellrowborder" colspan="2" valign="top" id="mcps1.3.2.3.2.4.1.2"><p>映射关系内容</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" headers="mcps1.3.2.3.2.4.1.1 "><p>独立部署到生产主机场景</p>
</td>
<td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.3.2.4.1.2 "><p>填写所有作为DN节点的主机业务平面IP地址与备份存储单元组/备份存储单元中所有<span>OceanProtect</span>的ESN映射关系。</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" headers="mcps1.3.2.3.2.4.1.1 "><p>部署到生产主机和独立物理服务器场景</p>
</td>
<td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.2.3.2.4.1.2 "><p>填写所有物理服务器的业务平面IP地址与备份存储单元组/备份存储单元中所有<span>OceanProtect</span>的ESN映射关系。</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul><li>独立部署到生产主机场景：<span style="color:#414142;">GaussDB(DWS)</span>的所有DN节点、CN节点都需要部署客户端。</li><li>部署到生产主机和独立物理服务器场景：在独立物理服务器和<span style="color:#414142;">GaussDB(DWS)</span>集群中任意一个CN节点部署客户端（为了系统可靠性，建议在2-3个CN节点上部署客户端）。</li></ul>
</div></div>
</div>
<div class="section" id="DWS_00117__section125885195719"><a name="DWS_00117__section125885195719"></a><a name="section125885195719"></a><h4 class="sectiontitle">映射规则</h4><ul><li>每个DN节点或物理服务器的业务平面IP地址可与任意一个<span>OceanProtect</span>的ESN建立映射关系，表示该业务平面的数据将写入到对应的<span>OceanProtect</span>中。</li><li>每个DN节点或物理服务器的业务平面IP地址只能与一个<span>OceanProtect</span>的ESN建立映射关系，不支持一个业务平面IP地址与多个ESN同时建立映射关系。</li><li>若有多台<span>OceanProtect</span>，建立映射关系时，请将映射关系均匀建立到不同的<span>OceanProtect</span>上。</li></ul>
</div>
<div class="section" id="DWS_00117__section132586514577"><a name="DWS_00117__section132586514577"></a><a name="section132586514577"></a><h4 class="sectiontitle">映射关系样例</h4><p>GaussDB(DWS)集群中的DN节点或物理服务器的业务平面IP地址分别为“192.168.10.186”、“192.168.10.187”、“192.168.10.188”、“192.168.10.189”和“192.168.10.190”，备份存储单元组中<span>OceanProtect</span>的ESN分别为“2102353GTJ10M1000001”和“2102353GTJ10M1000002”，则所需创建的业务平面IP地址与ESN的映射关系为：</p>
<p>192.168.10.186@2102353GTJ10M1000001</p>
<p>192.168.10.187@2102353GTJ10M1000002</p>
<p>192.168.10.188@2102353GTJ10M1000001</p>
<p>192.168.10.189@2102353GTJ10M1000002</p>
<p>192.168.10.190@2102353GTJ10M1000001</p>
</div>
<div class="section" id="DWS_00117__section5280729122712"><a name="DWS_00117__section5280729122712"></a><a name="section5280729122712"></a><h4 class="sectiontitle">操作步骤</h4><ol><li id="DWS_00117__li16729123619278"><a name="DWS_00117__li16729123619278"></a><a name="li16729123619278"></a><span>使用PuTTY，依次登录客户端所在主机。</span></li><li><span>执行<strong>vi /opt/DataBackup/ProtectClient/ProtectClient-E/conf/agent_cfg.xml</strong>命令编辑配置文件。</span></li><li id="DWS_00117__li179633364522"><a name="DWS_00117__li179633364522"></a><a name="li179633364522"></a><span>修改&lt;Backup&gt;中的<span class="uicontrol">“agent_storage_relation”</span>配置项。</span><p><pre class="screen">&lt;agent_storage_relation value="<em>主机ip</em><em>1</em>@<em>ESN</em><em>1</em>;<em>主机ip</em><em>2</em>@<em>ESN</em><em>2</em>;...<em>主机ipn</em>@<em>ESNn</em>"/&gt;</pre>
<p>其中：</p>
<ul><li><span class="uicontrol">“主机ip1”</span>~<span class="uicontrol">“主机ipn”</span>为部署了客户端的DN节点业务平面IP地址或部署了客户端的物理服务器业务平面IP地址。</li><li><span class="uicontrol">“ESN1”</span>~<span class="uicontrol">“ESNn”</span>为备份存储单元组/备份存储单元中<span>OceanProtect</span>的ESN。</li></ul>
<p>以<a href="#DWS_00117__section132586514577">映射关系样例</a>中的映射关系为例，<span class="uicontrol">“agent_storage_relation”</span>配置项所需填写的内容为：</p>
<pre class="screen">&lt;agent_storage_relation value="192.168.10.186@2102353GTJ10M1000001;192.168.10.187@2102353GTJ10M1000002;192.168.10.188@2102353GTJ10M1000001;192.168.10.189@2102353GTJ10M1000002;192.168.10.190@2102353GTJ10M1000001"/&gt;</pre>
</p></li><li><span>重复<a href="#DWS_00117__li16729123619278">1</a>~<a href="#DWS_00117__li179633364522">3</a>，修改所有客户端所在主机的agent_cfg.xml配置文件。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="DWS_00109.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>